// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  css:["@/assets/css/global.scss","@/assets/font/font.css"],
  build:{
    transpile:["element-plus/es"]
  },
  app: {
    // app: {
      // layoutTransition: { name: 'defaul', mode: 'out-in' },
    //   // pageTransition: { name: '[ename]', mode: 'out-in' },
    //   // pageTransition: { name: 'link_[ename]', mode: 'out-in' },
    //   // pageTransition: { name: 'project_[ename]', mode: 'out-in' }
    // },
    // 可以给所有的页面的head添加一下SEO的信息
    head: {
      title: "个人简历",
      meta: [
        {
          name: "description",
          content:
            "个人简历",
        },
        {
          name: "keywords",
          content: "个人简历",
        },
        { name: "viewport", content: "width=device-width, initial-scale=1" },
      ],
      link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
      noscript: [{ children: "Javascript is required" }],
    },
  },
  // nitro: {
    // devProxy: {
    //   '/api/': {
    //     // target: 'http://120.26.80.19:8005/',
    //     target: 'http://localhost:8005',
    //     changeOrigin: true,
    //     rewrite: (path) => path.replace(/^\/api/, ""),
    //   }
    // }
  // },
    modules: [
      '@pinia/nuxt',
      '@pinia-plugin-persistedstate/nuxt',
    ],
    ssr:true,
  piniaPersistedstate: {
       storage: 'sessionStorage',
     }
})
